home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
mus
/
play
/
playsid2_1.dms
/
playsid2_1.adf
/
preview.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-12-11
|
565b
|
32 lines
/*
* PlaySID ARexx Example
*
* rx preview 'songname'
*
*/
if(~show('l', 'rexxsupport.library'))then do
if(~addlib( 'rexxsupport.library', 0, -30, 0))then do
say "Could not open ARexx support library."
exit 10
end
end
parse arg name
address command "run SID:PlaySID"
say "Loading"
if SID_Load(name) then do
numtunes = SID_NumTunes()
say "Found" numtunes "tunes"
do tune = 1 to numtunes
say "Playing tune" tune
SID_SetTune(tune)
SID_Play()
Delay(5 * 50)
end
say "Stopped"
SID_Stop()
end
SID_Quit()